package com.jeethink.erp.unit.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.jeethink.common.annotation.Excel;
import com.jeethink.common.core.domain.BaseEntity;

/**
 * 商品计量单位对象 tb_product_unit
 * 
 * @author ypr
 * @date 2021-05-31
 */
public class TbProductUnit extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long productUnitId;

    /** 计量单位名称 */
    @Excel(name = "计量单位名称")
    private String name;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setProductUnitId(Long productUnitId) 
    {
        this.productUnitId = productUnitId;
    }

    public Long getProductUnitId() 
    {
        return productUnitId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("productUnitId", getProductUnitId())
            .append("name", getName())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
